<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    * {
      padding: 0;
      margin: 0;
    }
    .container {
      position: relative;
      display: flex;
      height: 100vh;
      width: 100vw;
      background: #000;
    }
    video {
      flex: 1;
      width: 100%;
      height: auto;
      object-fit: contain;
    }
    .tips {
      position: absolute;
      top: 50%;
      left: 50%;
      color: red;
    }
  </style>
</head>
<body>
  <!-- x5-video-player-fullscreen="true" -->
  <div class="container">
    <video
      id="video"
      src="./movie.mp4"
    >
    </video>
    <p class="tips">tips: aaaaa</p>
  </div>

  <script>
    /** @type { HTMLVideoElement } */
    const video = document.getElementById('video');
    video.addEventListener('click', () => {
      video.paused ? video.play() : video.pause()
    }, false)
  </script>
</body>
</html>